transition matrix for rotation of axes